<include file="public:header" />
<div class="allpagetop">问答管理<strong>/</strong>回答列表</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">回答列表</div>
				<div class="topnav">
			       <!--  <a href="{:RU('answer/add')}" <if condition="ACTION_NAME eq 'add'">class="select"</if>>添加</a>
					  <a href="{:RU('answer/lists')}" <if condition="ACTION_NAME eq 'lists'">class="select"</if>>列表</a> -->
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
  
	
	
	<div class="seltpye_x">
        <div class="left">回答筛选</div>    
        <div class="right">
        <a href="{:P(array('optimal'=>''))}" <if condition="$Think.get.optimal eq ''">class="select"</if>>不限</a>
        <a href="{:P(array('optimal'=>'0'))}" <if condition="$Think.get.optimal eq '0'">class="select"</if>>普通答案</a>
        <a href="{:P(array('optimal'=>'1'))}" <if condition="$Think.get.optimal eq '1'">class="select"</if>>最佳答案</a>
         
        <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
	
    <form id="form1" name="form1" method="post" action="{:RU('answer/delete')}">
	
	  <div class="admin_list_th">
	    <div class="td1" style=" width:30%;"><label id="chkAll" class="left_txt_td"><input type="checkbox" name="chkAll"  id="chk" title="全选/反选" />回复内容</label></div>
		<div class="td2" style=" width:25%;">所属问题</div>
		<div class="td4" style=" width:10%;">赞</div>
		<div class="td4" style=" width:15%;">回复会员</div>
		<div class="td3" style=" width:10%;">回复时间</div>		
		<div class="td5" style=" width:10%;">
		<div class="admin_list_right">操作</div>
		</div>
	  <div class="clear"></div>
	  </div>
	  
	  
	    <volist name="lists.list" id="list">
					   <div class="admin_list_tr link_bk">
						<div class="td1" style=" width:30%;">
						  <div class="left_txt_td striking">
								<input name="id[]" type="checkbox" id="id" value="{$list.id}"  />
								<if condition="$list.optimal eq '1'">
								<span class="userOPT">{$list.content}</span>
								<else />
								{$list.content}
								</if>
								
						  </div>
						</div>
						<div class="td2" style=" width:25%;">
							<empty name="list.question.title">
								<del>问题已删除</del>
								<else/>
								<a href="{$list.question.url}" target="_blank" >{$list.question.title|default="问题已删除"}</a>
							</empty>
						</div>
					 
							<div class="td3" style=" width:10%;">
						 <span class="userPRA">{$list.praise}</span>
						</div>
						 <div class="td3" style=" width:15%;">
						  <span class="userLV">LV{$list.user.exp_lv}</span>
						  <a href="{$list.user.user_url}" target="_blank" >{$list.user.username}</a>
						 </div>
						 <div class="td3" style=" width:10%;">
						 {$list.addtime_str}
						 </div>
				 
					   
						<div class="td5 edit" style=" width:10%;">
									  <div class="admin_list_right link_blue">
									 <a href="{:RU('answer/delete',array('id'=>$list['id']))}" onclick="return confirm('你确定要删除吗？')"  class="gray">删除</a>
									  </div>
						</div>
					  <div class="clear"></div>
					  </div>
	   </volist>
	  
 
      
  </form>
  
  
    <empty name="lists.list">
    <div class="admin_list_no_info">没有任何信息！</div>
    </empty>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
				  
				 <input type="button"  class="admin_submit" id="J_btn_del"   value="删除"/>
			  </div>
			  
			  
			  
	          <div class="footso">
			  			<form action="{:RU('answer/lists')}" method="get">
						<div class="sobox">
							<input name="key" type="text"  class="sinput" maxlength="10" value="{$Think.get.key}"/>
							<input name="key_type" id="J_key_type_id" type="hidden" value="{$Think.get.key_type|default="1"}" />
							<input name="key_type_cn" id="J_key_type_cn" type="hidden" value="{$Think.get.key_type_cn|default="内容"}" />
							<input name="" type="submit" value=""  class="sobtn"/>
							<div class="sotype" id="J_key_click">{$Think.get.key_type_cn|default="内容"}</div>
							
							
							
							
							
							<div class="mlist" id="J_mlist">
							<ul>
							<li id="1" title="内容">内容</li>
							<li id="2" title="UID">UID</li>
							</ul>
							</div>
						</div>
						</form>
			  </div>
	</div>
	
 
    <div class="uupage">{$lists.page}</div>
</div>
<include file="public:footer" />

 
<script type="text/javascript">
    $(document).ready(function()
    {	
        //点击批量取删除   
        $("#J_btn_del").click(function(){
			
            if (confirm('你确定要删除吗？'))
            {
				$("form[name=form1]").attr("action","{:RU('answer/delete')}").submit();
            }
        });
		 
		 
		
		 
		
    });
</script>
</body>
</html>